package fun.lifepoem.dynamic.domain;

import java.io.Serializable;

/**
 * 
 * @TableName cust_router
 */
public class CustRouter implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String serviceId;

    /**
     * 
     */
    private String predicates;

    /**
     * 
     */
    private String filters;

    /**
     * 
     */
    private String uri;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getServiceId() {
        return serviceId;
    }

    /**
     * 
     */
    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    /**
     * 
     */
    public String getPredicates() {
        return predicates;
    }

    /**
     * 
     */
    public void setPredicates(String predicates) {
        this.predicates = predicates;
    }

    /**
     * 
     */
    public String getFilters() {
        return filters;
    }

    /**
     * 
     */
    public void setFilters(String filters) {
        this.filters = filters;
    }

    /**
     * 
     */
    public String getUri() {
        return uri;
    }

    /**
     * 
     */
    public void setUri(String uri) {
        this.uri = uri;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CustRouter other = (CustRouter) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getServiceId() == null ? other.getServiceId() == null : this.getServiceId().equals(other.getServiceId()))
            && (this.getPredicates() == null ? other.getPredicates() == null : this.getPredicates().equals(other.getPredicates()))
            && (this.getFilters() == null ? other.getFilters() == null : this.getFilters().equals(other.getFilters()))
            && (this.getUri() == null ? other.getUri() == null : this.getUri().equals(other.getUri()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getServiceId() == null) ? 0 : getServiceId().hashCode());
        result = prime * result + ((getPredicates() == null) ? 0 : getPredicates().hashCode());
        result = prime * result + ((getFilters() == null) ? 0 : getFilters().hashCode());
        result = prime * result + ((getUri() == null) ? 0 : getUri().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", serviceId=").append(serviceId);
        sb.append(", predicates=").append(predicates);
        sb.append(", filters=").append(filters);
        sb.append(", uri=").append(uri);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}